﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace LED_Tester
{
    public partial class frmInformation : Form
    {
        public frmInformation()
        {
            InitializeComponent();
        }

        private string[] information;

        public string[] Information
        {
            get { return information; }
            set { information = value; }
        }

        private void frmInformation_Load(object sender, EventArgs e)
        {
            textBox1.Text = information[0];
            textBox2.Text = information[1];
            textBox3.Text = information[2];
            textBox4.Text = information[3];
            textBox5.Text = information[4];
            textBox6.Text = information[5];
        }

        private void frmInformation_FormClosing(object sender, FormClosingEventArgs e)
        {
            information[0] = textBox1.Text;
            information[1] = textBox2.Text;
            information[2] = textBox3.Text;
            information[3] = textBox4.Text;
            information[4] = textBox5.Text;
            information[5] = textBox6.Text;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.OK;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.Cancel;
        }
    }
}
